package com.example.app;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class TestController {


    @GetMapping("/test")
    public String test() {
        log.info("接收到外界访问.");
        return "欢迎访问K8s中的springboot项目";
    }


}